package context.lifecycle;

import org.springframework.context.Lifecycle;
import org.springframework.stereotype.Component;

/**
 * @Author com.alibaba.lizhen
 * @Date 2021/6/1 9:28 下午
 * @Version 1.0
 * @Description
 */
@Component
public class LifeCycleImpl2 implements Lifecycle {
	@Override
	public void start() {
		System.out.println(this + " start");
	}

	@Override
	public void stop() {
		System.out.println(this + " stop");
	}

	@Override
	public boolean isRunning() {
		return false;
	}
}
